package com.tm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.sql.rowset.serial.SerialArray;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author huangp
 * @create 2023-04-05 10:24
 */
@Data
@TableName("dish")
public class DishEntity  extends CreateAllEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;// bigint(20) NOT NULL COMMENT '主键',
    private String name;//  varchar(64) COLLATE utf8_bin NOT NULL COMMENT '菜品名称',
    @TableField(value = "category_id")
    private Long categoryId;//  bigint(20) NOT NULL COMMENT '菜品分类id',
    @TableField(exist = false)
    private String categoryName;//
    private BigDecimal price;//  decimal(10,2) DEFAULT NULL COMMENT '菜品价格',
    private String code;//  varchar(64) COLLATE utf8_bin NOT NULL COMMENT '商品码',
    private String image;//  varchar(200) COLLATE utf8_bin NOT NULL COMMENT '图片',
    private String description;//  varchar(400) COLLATE utf8_bin DEFAULT NULL COMMENT '描述信息',
    private Integer status;//  int(11) NOT NULL DEFAULT '1' COMMENT '0 停售 1 起售',
    private Integer sort;//  int(11) NOT NULL DEFAULT '0' COMMENT '顺序',
    @TableLogic(delval = "1",value = "0")
    private Integer isDeleted;//  int(11) NOT NULL DEFAULT '0' COMMENT '是否删除',
    
}
